package com.ias.agdis_r.view.base;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.FrameLayout.LayoutParams;
import android.widget.TextView;

import com.ias.agdis_r.util.S;

public class BaseTextView extends TextView{

 public BaseTextView(Context context) { 
	   super(context); 
  } 
  public BaseTextView(Context context, AttributeSet attrs){ 
	   super(context,attrs); 
   } 
   public BaseTextView(Context context, AttributeSet attrs, int defStyle){ 
	   super(context, attrs, defStyle); 
	} 
	 public boolean isFocused(){ 
	     return true; 
	} 
	    
	String tag = "";
	public BaseTextView(Context context,Object tag) {
		super(context);
		// TODO Auto-generated constructor stub
		this.tag = S.valueOf(tag);
		init();
	}
	public void init()
	{
		this.setTextSize(21);
		LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
		this.setLayoutParams(lp);
		this.setPadding(5, 0, 0, 0);
		this.setTag(tag);
	}
}
